#! /bin/sh
# Copyright (c) 2005 fusionstack.cn
# All rights reserved.
#
# chkconfig: 2345 42 42
# description: lichd service.
#
### BEGIN INIT INFO
# Provides:          lichd
# Required-Start:    $network $portmap
# Required-Stop:     $network $portmap
# Default-Start:     S
# Default-Stop:      0 1 6
# Short-Description: lichd service
# Description:       lichd service
### END INIT INFO

case "$1" in
status)
    lich.node --stat
    ;;
start)
    lich.node --start
    ;;
stop)
    lich.node --stop
    ;;
restart)
    lich.node --stop
    lich.node --start
    ;;
*)
    $ECHO "Crazy"
    exit 1
esac
